<?php
use common\components\GlobalUrlComponent;
use yii\helpers\Url;
use common\models\Admin\Admin;
?>

<!-- Top Navigation -->
<nav class="navbar navbar-default navbar-static-top m-b-0" style="z-index: 9999999;">
    <div class="navbar-header" style="position: fixed;"> <a class="navbar-toggle hidden-sm hidden-md hidden-lg " href="javascript:void(0)" data-toggle="collapse" data-target=".navbar-collapse"><i class="ti-menu"></i></a>
        <!-- Logo -->
        <div class="top-left-part">
            <a href="<?=Url::to(['/'])?>">
                <!-- Logo icon image, you can use font-icon also -->
                <!-- Logo text image you can use text also --><!--span class="hidden-xs"><img src="" alt="home" /></span-->
            </a>
        </div>
        <!-- /Logo -->
        <!-- This is for mobile view search and menu icon -->
        <ul class="nav navbar-top-links navbar-left hidden-xs">
            <li><a href="javascript:void(0)" class="open-close hidden-xs waves-effect waves-light"><i class="icon-arrow-left-circle ti-menu"></i></a></li>
            <li>
                <form role="search" class="app-search hidden-xs">
                    <input type="text" placeholder="Search..." class="form-control"> <a href=""><i class="fa fa-search"></i></a> </form>
            </li>
        </ul>
        <!-- This is the message dropdown -->
        <ul class="nav navbar-top-links navbar-right pull-right">
            <!-- /.dropdown -->
            <li class="dropdown">
                <a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#">
                    <img src="<?=Admin::getCurrentUser('face') ? Admin::getCurrentUser('face') : \common\components\DataHelper::getDefaultHeaderImage()?>" alt="user-img" width="36" class="img-circle">
                        <b  class="hidden-xs">
                            【<?=Admin::getTypeMap(Admin::getCurrentUser("type"))?> | <?=Admin::getCurrentUser("username")?>】基础设置
                        </b>
                </a>
                <ul class="dropdown-menu dropdown-user animated flipInY">
                    <!--li><a href="<Url::to(['/center'])?>" rel-action="open" rel-width="100%" rel-height="94%" rel-offset="60px" rel-title="我的账户"><i class="ti-user"></i> 我的账户</a></li-->
                    <li><a href="<?=Url::to(['/center'])?>" rel-action="open" rel-width="100%" rel-height="94%" rel-offset="60px" rel-title="账户管理"><i class="fa fa-users"></i> 账户管理</a></li>
                    <!--li><a href="#"><i class="ti-settings"></i> Account Setting</a></li-->
                    <li role="separator" class="divider"></li>
                    <li><a href="<?=Url::to(['/login/logout'])?>"><i class="fa fa-power-off"></i> 退出登陆</a></li>
                </ul>
                <!-- /.dropdown-user -->
            </li>

        </ul>
    </div>
    <!-- /.navbar-header -->
    <!-- /.navbar-top-links -->
    <!-- /.navbar-static-side -->
</nav>
<!-- End Top Navigation -->
